package com.auto.code.dao.impl;

import com.auto.code.dao.TemplateGroupDAO;
import com.auto.code.domain.TemplateGroupDO;
import com.auto.code.domain.TemplateGroupDTO;
import com.auto.code.mapper.TemplateGroupMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class TemplateGroupDAOImpl implements TemplateGroupDAO {
    @Autowired
    private TemplateGroupMapper templateGroupMapper;

    @Override
    public int deleteById(Long id) {
        return templateGroupMapper.deleteById(id);
    }

    @Override
    public int insert(TemplateGroupDO record) {
        return templateGroupMapper.insert(record);
    }

    @Override
    public TemplateGroupDO getById(Long id) {
        return templateGroupMapper.getById(id);
    }

    @Override
    public int update(TemplateGroupDO record) {
        return templateGroupMapper.update(record);
    }

    @Override
    public List<TemplateGroupDO> queryList(Map<String, Object> params) {
        return templateGroupMapper.queryList(params);
    }
}